package com.zhuojy.equity.mall.admin.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_funding_accounts")
public class Accounts implements Serializable {
    private static final long serialVersionUID = -5228407069467562856L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String accountName;

    private String institutionType;

    private String institutionName;

    private String account;

    private Double openingBalance;

    private Double currentBalance;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private String remark;

    private String status;
    private Integer flowId;
    private String defalutStatus;

@TableField(exist = false)
    private TFlow tflow;
//业务日期
    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date businessTime;
    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;


}
